<div style="display:none;" class="annotation_form" id="<%= "add_" + annotatable_type.downcase + "_" + attribute_name.downcase + annotatable_id.to_s -%>">
  <% form_for :annotation, :url => annotations_url do |f| %>
    <%= case attribute_name
          when "category"
            select_tag('annotation[value]', Category.create_select_options)
          when "description"
            f.text_area(:value, :size => "50x5") + "<br/>"
          else
            f.text_field(:value, :size => 30)
        end -%>
    <%= hidden_field_tag 'annotation[attribute_name]', attribute_name %>
    <%= hidden_field_tag 'annotation[annotatable_type]', annotatable_type %>
    <%= hidden_field_tag 'annotation[annotatable_id]', annotatable_id %>
    <%= f.submit "Save" %>
  <% end %>
</div>
